<!--  -->
<template>
  <div>组件2</div>
</template>

<script>
import {defineComponent} from 'vue'
 export default defineComponent({

    beforeCreate() {
        console.log("生命周期函数beforeCreate");
    },
    created() {
        console.log("生命周期函数created");
    },
    beforeMount() {
        
    },

    setup(){
        console.log("组合式api入口setup函数");
    }
 })
</script>
<style scoped>
</style>